package threadTest;

public class ProducerThread extends Thread{
    Pruduct pruduct = null;

    public ProducerThread(Pruduct p){
        this.pruduct = p;
    }
    @Override
    public void run() {
        while (true){
            try {
                pruduct.add();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
